package cn.quang.search.admin.entity.vo.datasource;

public class DataSourceDetailVO {
    /**
     * 自增值
     */
    private long id;
    /**
     * 数据源唯一标识，全局不重复
     */
    private String name;
    /**
     * 数据源描述（比如：搜索服务crmSearchCenter数据源，用于提供营销平台统一的ES基础服务）
     */
    private String description;

    /**
     * 1 - ES, 2 - MySQL
     */
    private int type;
    /**
     * 数据源链接字符串
     */
    private String jdbcUrl;
    /**
     * 数据库连接用户名
     */
    private String userName;
    /**
     * 数据库连接密码
     */
    private String password;
    /**
     * 最小空闲连接数
     */
    private int minIdleSize;
    /**
     * 初始化连接数
     */
    private int initialSize;
    /**
     * 最大连接数
     */
    private int maxActiveSize;
    /**
     * 超时（毫秒值）
     */
    private int timeoutMillisecond;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMinIdleSize() {
        return minIdleSize;
    }

    public void setMinIdleSize(int minIdleSize) {
        this.minIdleSize = minIdleSize;
    }

    public int getInitialSize() {
        return initialSize;
    }

    public void setInitialSize(int initialSize) {
        this.initialSize = initialSize;
    }

    public int getMaxActiveSize() {
        return maxActiveSize;
    }

    public void setMaxActiveSize(int maxActiveSize) {
        this.maxActiveSize = maxActiveSize;
    }

    public int getTimeoutMillisecond() {
        return timeoutMillisecond;
    }

    public void setTimeoutMillisecond(int timeoutMillisecond) {
        this.timeoutMillisecond = timeoutMillisecond;
    }
}
